#ifndef DISHREQUEST_H
#define DISHREQUEST_H
#include "recommend.h"
#include <QObject>
#include <QDebug>
#include <QJsonObject>
#include <QJsonDocument>
#include <QObject>
struct DishInfo
{
    int id;
    QString name;
    QString material;
    QString detail;
    QString pic;
    QString type;
    int userId;
    quint32 likeCount;
    quint32 commentCount;
};

class DishRequest : public QObject
{
    Q_OBJECT
public:
    explicit DishRequest(QObject *parent = nullptr);

    QList<DishInfo> DishList;
    void getDishList(QString token);
signals:
    void getDishListSuccess();
private:
    recommend *m_r;

};

#endif // DISHREQUEST_H
